package com.atguigu03.field_method.field.exer2;

import com.atguigu03.field_method.field.exer2.Employee;

/**
 * ClassName: EmployeeTest
 * Package: com.atguigu03.field_method.field.exer2
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/16 14:54
 * @Version 1.0
 */
public class EmployeeTest {
    public static void main(String[] args) {
        // 创建Employee的一个实例
        Employee emp1 = new Employee();

        emp1.id = 10001;
        emp1.name = "踩虚鲲";
        emp1.age = 24;
        emp1.salary = 1800;
        emp1.birthday = new MyDate();
        emp1.birthday.year = 2000;
        emp1.birthday.month = 4;
        emp1.birthday.day = 19;

        // 打印员工信息
        System.out.println("id = " + emp1.id + ",name = " + emp1.name + ",age = " + emp1.age + ",salary = " + emp1.salary + ",birthday = [" + emp1.birthday.year + "年" + emp1.birthday.month + "月" + emp1.birthday.day + "日]");
    }
}
